#include "SenderFilter.h"
#include "SenderInputPin.h"

SenderFilter::SenderFilter()
	:CBaseFilter(NAME("SenderFilter"), NULL, &m_Lock, CLSID_SenderFilter)
{
	HRESULT hr;
	pInputPin = new SenderInputPin(this, &m_Lock, &m_ReceiveLock, &hr);
}
SenderFilter::SenderFilter(LPUNKNOWN pUnk)
        :CBaseFilter(NAME("SenderFilter"), pUnk, &m_Lock, CLSID_SenderFilter)
{
	HRESULT hr;
    pInputPin = new SenderInputPin(this, &m_Lock, &m_ReceiveLock, &hr);
}


SenderFilter::~SenderFilter(void)
{
}

CBasePin * SenderFilter::GetPin(int n)
{
    if (n == 0) {
        return pInputPin;
    } else {
        return NULL;
    }
}

int SenderFilter::GetPinCount()
{
    return 1;
}
